class Animal{
    String name;
    int age;

    public void fun(){
        System.out.println(name + "吃饭" );
    }
}
public class Main {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.name = "xiaochao";
        animal.fun();
    }
}